package com.yq.disablecookie;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/ServletDisableCookie")
public class ServletDisableCookie extends HttpServlet {


    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        //当浏览的cookie被禁用的时候，每一处的地址都需要 response.encodeURL("")，可以继续的使用session
        //session是基于cookie的，开发的时候不考虑
        String s = response.encodeURL("/index");


    }
}
